new: fix hgignore for real
authorSiddharth Agarwal <sid0@fb.com>
Mon, 31 Jul 2017 01:15:24 +0000 (18:15 -0700)
committerSiddharth Agarwal <sid0@fb.com>
Mon, 31 Jul 2017 01:28:18 +0000 (18:28 -0700)
commitbef1f477cbd7486d53b34bb1b592e75f52470e4d
tree65bf8a4c7481e23b4a10f330b3dd73d55334ab8d
parent88d15f9885aa3c37ad619f723ea29549601d8dfc
new: fix hgignore for real

There was an attempt to fix hgignore in #4158, but unfortunately the fix
was incorrect -- hgignore glob syntax is not in fact identical to
gitignore syntax.

To get rooted ignores in Mercurial we must use the regex-based syntax,
so we have no choice but to define a separate set of ignores.
src/cargo/ops/cargo_new.rs